package com.fh.util;


import com.fh.service.system.user.UserManager;


/**
 * @author Administrator
 * 获取Spring容器中的service bean
 */
public final class ServiceHelper {
	
	public static Object getService(String serviceName){
		//WebApplicationContextUtils.
		return Const.WEB_APP_CONTEXT.getBean(serviceName);
	}
	
	public static UserManager getUserService(){
		return (UserManager) getService("userService");
	}
	
//	public static RoleService getRoleService(){
//		return (RoleService) getService("roleService");
//	}
//	
//	public static MenuService getMenuService(){
//		return (MenuService) getService("menuService");
//	}
}
